package main

import (
	"net/http"
	"net/http/httputil"
	"fmt"
)

/**
 * @description 
 * @time 2018/9/9 18:43
 * @version 
 */
func main() {
	var (
		msgType int
	)

	resp, err := http.Get("http://www.imooc.com")
	if err != nil {
		panic(err)
	}
	defer resp.Body.Close()

	s, err := httputil.DumpResponse(resp, true)
	if err != nil {
		panic(err)
	}


	fmt.Printf("%s\n",s)
}
